package com.sat.order.controller;

import com.sat.common.entity.Result;
import com.sat.order.model.Order;
import com.sat.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("order")
public class OrderController {
    @Autowired
    private OrderService orderService;
    /**
     * 添加订单
     * @param
     * @param receiver_contact
     * @param receiver_mobile
     * @param receiver_address
     * @return
     */
    @RequestMapping("add")
    public Result add(Long[] skuIds,String receiver_contact,String receiver_mobile,String receiver_address){
        orderService.add(skuIds,receiver_contact,receiver_mobile,receiver_address);
        return Result.ok();
    }
}
